<?php

use yii\db\Migration;
use yii\db\Schema;

class m170527_020946_add_column_order_check extends Migration
{
    public function up()
    {
         $this->addColumn('{{order}}', 'check', Schema::TYPE_INTEGER. "(1)  DEFAULT  '1' COMMENT '1 正常  2 待审核' ");
    }

    public function down()
    {
        echo "m170527_020946_add_column_order_check cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
